package com.ls.dao;

import com.ls.entity.Role;
import com.ls.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

public interface UserDao {

    void jiaru(User user);

    User findByUsername(String username);

    //根据用户查询所有角色
    User findRolesByUsername(String username);

    //根据角色id查询权限集合
    Role findPermsByRoleId(int id);
}
